#ifndef ADDPOINTDLG_H
#define ADDPOINTDLG_H

#include <QDialog>
#include <QTableWidget>
#include <QLineEdit>
#include <QLabel>
#include "point.h"
#include "ui_addPoint.h"

class addPointDlg : public QDialog
{
    Q_OBJECT

signals:
    void pointChanged();
    void pointUnchanged();
private:
    QVector<Point> *pointArr;
    void addItem(int i,const Point &p);
public:
    addPointDlg(QVector<Point> *);
    Ui::pointDialog *ui;
    ~addPointDlg() override;


    // QDialog interface
public slots:
    virtual void accept() override;
    virtual void reject() override;
    void addRow();
    void deleteNowRow();
};

#endif // ADDPOINTDLG_H
